package com.yxx.service;

import com.yxx.entityModel.vo.Result.PageResult;
import com.yxx.entityModel.vo.query.PageQuery;
import com.yxx.entityModel.vo.query.TalkQuery;
import com.yxx.entityModel.vo.request.TalkRequest;
import com.yxx.entityModel.vo.response.TalkBackInfoResponse;
import com.yxx.entityModel.vo.response.TalkBackResponse;
import com.yxx.entityModel.vo.response.TalkResponse;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @author yuxiangxun
 * @date 2025/2/13
 * @apiNote
 */
public interface TalkService {
    /**
     * 查看后台说说列表
     * @param talkQuery
     * @return
     */
    PageResult<TalkBackResponse> listTalkBackVO(TalkQuery talkQuery);

    /**
     * 上传说说图片
     * @param file
     * @return
     */
    String uploadTalkCover(MultipartFile file);

    /**
     * 添加说说
     * @param talkRequest
     */
    void addTalk(TalkRequest talkRequest);

    /**
     * 删除说说
     * @param talkId
     */
    void deleteTalk(Integer talkId);

    /**
     * 修改说说
     * @param talk
     */
    void updateTalk(TalkRequest talk);

    /**
     * 编辑说说
     * @param talkId
     * @return
     */
    TalkBackInfoResponse editTalk(Integer talkId);

    /**
     * 查看首页说说
     * @return
     */
    List<String> listTalkHome();

    /**
     * 查看说说列表
     * @param pageQuery
     * @return
     */
    PageResult<TalkResponse> listTalkVO(PageQuery pageQuery);

    /**
     * 查看说说
     * @param talkId
     * @return
     */
    TalkResponse getTalkById(Integer talkId);
}
